package com.bridge.applets.model.enums;


import lombok.Getter;

@Getter
public enum BridgeStateEnum {

    SAVE(0, "保存"),
    SUBMIT(1, "提交"),
    FINISH(2, "完成"),
    FAILED(3, "失败"),
    ;

    private final Integer type;
    private final String desc;

    BridgeStateEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }


    //是否可以进行 分析处理
    public static boolean canDoAnalysis(Integer state){
        if(SAVE.type.equals(state)||FAILED.type.equals(state)){
            return true;
        }
        return false;
    }

}
